package com.liusand.movement.mapper;

import com.liusand.entity.pojo.Movement;
import com.liusand.entity.vo.MovementVo;
import com.liusand.entity.vo.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.core.annotation.Order;

import java.util.List;

/**
 * @author :liusha
 * packageName :com.liusand.movement.mapper
 * fileName :MovementMapper
 * creationTime :2022/12/23 15:45
 */
@Mapper
public interface MovementMapper {
    Integer insertOne(@Param("movement") Movement movement);

    List<MovementVo> selectAllOrderByCreateTime(@Param("start") Integer start,
                                                @Param("pageSize") Integer pageSize);


    Long countMovement(@Param("start") Integer start,
                       @Param("pageSize") Integer pageSize);
}
